<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'GuestBook.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="<%=path%>/js/jquery-1.6.2.min.js"></script>
  </head>
  
  <body>
   <div>
   <table class="table_a" id="kk"  align="center"
		border="2" style="width:100%;">
   <tr>
          <th scope="col" abbr="Dual 1.8">编号</th>
		  <th scope="col" abbr="Dual 1.8">姓名</th>
		  <th scope="col" abbr="Dual 1.8">联系号码</th>
		  <th scope="col" abbr="Dual 1.8">邮箱</th>
		  <th scope="col" abbr="Dual 1.8">留言内容</th>
		  <th scope="col" abbr="Dual 1.8">创建时间</th>
		  <th scope="col" abbr="Dual 1.8">回复</th>
		  <th scope="col" abbr="Dual 1.8">回复人</th>
		  <th scope="col" abbr="Dual 1.8">回复时间</th>
		  <th scope="col" abbr="Dual 1.8">操作</th>
   </tr>
   <s:iterator value="#request.GBList" var="d">
   <tr onMouseover="this.style.background='#DCB5FF'" onmouseout ="this.style.background=''">
                <td align="center">${d.CId }</td>
				<td align="center">${d.CName }</td>
				<td align="center">${d.CTele }</td>
				<td align="center">${d.CMail }</td>
				<td align="center">${d.CContent }</td>
				<td align="center"><s:date  name="#d.CCreatetime " format="yyyy-MM-dd hh:mm:ss"/></td>
				<td align="center">${d.CReply }</td>
				<td align="center">${d.CReplyer }</td>
				<td align="center"><s:date  name="#d.CReplytime " format="yyyy-MM-dd hh:mm:ss"/></td>
                <td align="center">
				<a id="del" href="javascript:del('${d.CId }')">删除</a>
				</td>
   </tr>
   
   
   
   
   </s:iterator>
   
   
   
   </table>
   </div>
   
   
   
   
  </body>
</html>
